package com.chinatechstar.admin.entity;

import com.chinatechstar.component.commons.entity.CreateEntity;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

/**
 * 系统用户组 用户组可以通过绑定角色使得用户组内所有用户获得该角色权限(sys_user_group)
 *
 * @author Rei
 * @version 1.0.0 2021-01-03
 */
public class SysUserGroup extends CreateEntity implements java.io.Serializable {
    /**
     * 版本号
     */
    private static final long serialVersionUID = 8938797969791973880L;

    /* This code was generated by TableGo tools, mark 1 begin. */

    /**
     * 用户组ID
     */
    private Long id;

    /**
     * 用户组名称
     */
    private String groupName;

    /**
     * 显示顺序
     */
    private Integer displayOrder;

    /**
     * 绑定角色ID【弱关联】
     */
    private Long groupBindRoleId;

    /* This code was generated by TableGo tools, mark 1 end. */

    /* This code was generated by TableGo tools, mark 2 begin. */

    /**
     * 获取用户组ID
     *
     * @return 用户组ID
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置用户组ID
     *
     * @param id 用户组ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户组名称
     *
     * @return 用户组名称
     */
    public String getGroupName() {
        return this.groupName;
    }

    /**
     * 设置用户组名称
     *
     * @param groupName 用户组名称
     */
    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    /**
     * 获取显示顺序
     *
     * @return 显示顺序
     */
    public Integer getDisplayOrder() {
        return this.displayOrder;
    }

    /**
     * 设置显示顺序
     *
     * @param displayOrder 显示顺序
     */
    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }

    /**
     * 获取绑定角色ID【弱关联】
     *
     * @return 绑定角色ID【弱关联】
     */
    public Long getGroupBindRoleId() {
        return this.groupBindRoleId;
    }

    /**
     * 设置绑定角色ID【弱关联】
     *
     * @param groupBindRoleId 绑定角色ID【弱关联】
     */
    public void setGroupBindRoleId(Long groupBindRoleId) {
        this.groupBindRoleId = groupBindRoleId;
    }

    /* This code was generated by TableGo tools, mark 2 end. */

    /* This code was generated by TableGo tools, mark 3 begin. */

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(obj, this);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }

    /* This code was generated by TableGo tools, mark 3 end. */
}